BINNAME	:= test

FLAGS := -O1 -w -pipe -pthread -DQT_NO_DEBUG\
-lglut -lQtGui -lQtOpenGL -lGL -lGLU -lGLEW \
-I/usr/share/qt4/mkspecs/default -I/usr/include/QtGui -I/usr/include/QtOpenGL

standard:
	@g++ $(FLAGS) $(BINNAME).cpp -o $(BINNAME)
#	echo "ok"
	./$(BINNAME)


# QT_NO_DEBUG means that the build is without debugging support. This results in a smaller executable.
# QT_SHARED means that Qt is not statically linked (to the executable?)
# -pthread is equivalent to -lpthread -D_REENTRANT
# m32|m64 Specifies the memory model for the compiled binary object. Use -m32 to create 32-bit executables and shared libraries. Use -m64 to create 64-bit executables and shared libraries.